using System;
using Rdl;

namespace GTame.ReportParser
{

    public class LegendType
    {

        private System.Nullable<bool> _InsidePlotArea;
        private Rdl.LegendTypeLayout _Layout;
        private Rdl.LegendTypePosition _Position;
        private GTame.ReportParser.StyleType _Style;
        private System.Nullable<bool> _Visible;

        public System.Nullable<bool> InsidePlotArea
        {
            get
            {
                return _InsidePlotArea;
            }
            set
            {
                _InsidePlotArea = value;
            }
        }

        public Rdl.LegendTypeLayout Layout
        {
            get
            {
                return _Layout;
            }
            set
            {
                _Layout = value;
            }
        }

        public Rdl.LegendTypePosition Position
        {
            get
            {
                return _Position;
            }
            set
            {
                _Position = value;
            }
        }

        public GTame.ReportParser.StyleType Style
        {
            get
            {
                if (_Style == null)
                    _Style = new GTame.ReportParser.StyleType();
                return _Style;
            }
            set
            {
                _Style = value;
            }
        }

        public System.Nullable<bool> Visible
        {
            get
            {
                return _Visible;
            }
            set
            {
                _Visible = value;
            }
        }

        public LegendType()
        {
            _InsidePlotArea = new System.Nullable<bool>[]();
            _Visible = new System.Nullable<bool>[]();
        }

        public Rdl.LegendType Write()
        {
            // trial
            return null;
        }

    } // class LegendType

}

